package com.supplychainapi.common;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

public class ServiceResponse<T extends Serializable> implements Serializable {
	private static final long serialVersionUID = -6495911812654393168L;
	private String code = "200";
	private String message = "请求成功";
	private String data = "{}";

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;

	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}
}
